/ Assembly List / LJCNetCommon / CodeTokenizer / EndTokens

Namespace - LJCNetCommon


Parameters
tokenIndex - The token index.

Syntax

C#
public Void EndTokens(Int16& tokenIndex)

Sets the tokenIndex to the end of the tokens array. (E)

Example

C#
using LJCNetCommon;

var tokenizer = new CodeTokenizer();
string text = " string text = \"DataValue\"";
tokenizer.SetTokens(text);
short tokenIndex = 3;
string token = tokenizer.GetToken(tokenIndex);
if (tokenizer.IsDataValue(token)
  && false = token.Contains("("))
{
  // Value tokenIndex is set to the end of the tokens array.
  tokenizer.EndTokens(ref tokenIndex);
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.